|
|
|
|
<Array>.SwapLine (Function) In french: <Tableau>.EchangeLigne Used to swap two rows in a two-dimensional array or in an advanced array property. MyArray is array of 5 by 2 strings MyArray[1,1] = Â "A" MyArray[1,2] = Â "a" MyArray[2,1] = Â "B" MyArray[2,2] = Â "b" MyArray[3,1] = Â "C" MyArray[3,2] = Â "c" MyArray[4,1] = Â "D" MyArray[4,2] = Â "d" MyArray[5,1] = Â "E" MyArray[5,2] = Â "e" // Swap row 2 with row 4 MyArray.SwapLine(2, 4) // The array contains the following elements: // "A", "a" // "D", "d" // "C", "c" // "B", "b" // "E", "e"
Syntax
<WLanguage array>.SwapLine(<Index of 1st row> , <Index of 2nd row>)
<WLanguage array>: Array Name of the Array variable to use. This array must be a two-dimensional array. <Index of 1st row>: Integer Index of the first row to swap. <Index of 2nd row>: Integer Index of the second row to swap.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|